<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>新增用户</title>
	<%@ include file="/WEB-INF/include/include.jsp" %>
	<script type="text/javascript" src="<%=path %>/js/sysmgr/user/userEdit.js"></script>
  </head>
  <body>
  	<div class="editpage-locked-content">
		<h2 class="editpage-lk-title" >新增用户</h2>
		<div class="editpage-lk-tbar" id="tbarWrap"></div>
	</div>
	<div class="editpage-content" >
		<div class="editpage-form" id="formWrap"></div>
	</div> 
  </body>
</html>
	<ui:page>
	
		<ui:toolbar  id="toolbar"  renderTo="tbarWrap" >
			<x:items>
				<ui:button text="保存" iconCls='icon-save'  handler="UserEdit.submitForm" scope="UserEdit"/>
				<x:value>-</x:value>
				<ui:button text="取消" iconCls='icon-cancel' handler="UserEdit.close" scope="UserEdit"/>
				<x:value>-</x:value>
			</x:items>
		</ui:toolbar>
		
		<ui:formPanel id="userForm"  var="userForm" renderTo="formWrap"  >
			<x:attr name="border" type="int" >0</x:attr>
			<x:attr name="bodyPadding"  type="int" >5</x:attr>
			<x:attr name="fieldDefaults">
				<x:value>
					<x:attr name="labelAlign"  type="string" >right</x:attr>
				</x:value>
			</x:attr>
			<x:items>
				<ui:formPanel.fieldset title="详细信息">
				<x:attr name="layout">
					<x:value type="direct">{type:'table',columns:3}</x:value>
				</x:attr>
				<x:attr name="fieldDefaults">
					<x:value type="direct">{margin:'5 5 5 5' }</x:value>
				</x:attr>
					<x:items>
						<ui:formPanel.text id="USER_CODE" fieldLabel="用户编码" allowBlank="false" />
						<ui:formPanel.text id="USER_NAME" fieldLabel="用户名称"  allowBlank="false"/>
						<ui:formPanel.orgTriggerField id="ORG_SIMPLE_NAME" fieldLabel="组织机构"  hiddenId="ORG_ID"></ui:formPanel.orgTriggerField>
						<ui:formPanel.sexCombox id="USER_SEX" fieldLabel="性别" allowBlank="false"></ui:formPanel.sexCombox>
						<ui:formPanel.text id="USER_TEL" fieldLabel="电话"/>
						<ui:formPanel.text id="USER_EMAIL" fieldLabel="邮件地址" >
							<x:attr name="vtype">email</x:attr>
						</ui:formPanel.text>
						<ui:formPanel.date id="USER_AVIDATE" fieldLabel="有效日期"/>
						<ui:formPanel.statusCombox id="C_STATUS" fieldLabel="状态" allowBlank="false"></ui:formPanel.statusCombox>
						<ui:formPanel.hidden id="USER_ID"/>
						<ui:formPanel.textarea id="C_REMARK" fieldLabel="备注" >
						<x:attr name="colspan" type="direct">3</x:attr>
						</ui:formPanel.textarea>
						<ui:formPanel.hidden id="ORG_ID"/>
						<ui:formPanel.hidden id="USER_TYPE"/>
					</x:items>
				</ui:formPanel.fieldset>
				
			</x:items>
		</ui:formPanel>
	</ui:page>

	
